package com.yifeng.repo.base.security.console.impl;

import com.yifeng.repo.base.params.ConsoleParam;
import com.yifeng.repo.base.security.console.PermissionRestService;
import com.yifeng.repo.base.security.proxy.CommonProxy;

import java.util.List;

/**
 * Created by daibing on 2024/2/28.
 */
public class SupplyPermissionServiceImpl extends CommonProxy implements PermissionRestService {
    private final String mapping;

    public SupplyPermissionServiceImpl(ConsoleParam consoleParam) {
        super(consoleParam);
        this.mapping = "/yfcloud-supply/rest/permission";
    }

    @Override
    public List<String> listPublicKey() {
        String url = consoleParam.getUrl() + mapping + "/listPublicKey";
        return this.doListCallByRpc(url, String.class);
    }
}
